﻿<%@ Page Title="" Language="C#" MasterPageFile="./Admin.Master" AutoEventWireup="true" CodeBehind="CandidateInfoList.aspx.cs" Inherits="CO9APPFORM.CandidateInfoList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" href="js/plugins/textext/css/textext.core.css" rel="stylesheet"/>
    <link type="text/css" href="js/plugins/textext/css/textext.plugin.tags.css" rel="stylesheet"/>
    <link type="text/css" href="js/plugins/textext/css/textext.plugin.autocomplete.css" rel="stylesheet"/>
    <link type="text/css" href="js/plugins/textext/css/textext.plugin.focus.css" rel="stylesheet"/>
    <link type="text/css" href="js/plugins/textext/css/textext.plugin.prompt.css" rel="stylesheet"/>
    <link type="text/css" href="js/plugins/textext/css/textext.plugin.arrow.css" rel="stylesheet"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="server">
    <div class="row" style="height: 530px;">
        <div class="col-md-12">
            <h1 class="page-header"> Candidate Info List</h1>
            <asp:GridView ID="gvCandidate" runat="server" Width="100%" AllowPaging="true" PageSize="10" 
                AutoGenerateColumns="False" CssClass="table table-striped" 
                onrowdatabound="gvCandidate_RowDataBound" 
                onrowcommand="gvCandidate_RowCommand" DataKeyNames="HASH" 
                onpageindexchanging="gvCandidate_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="FNAME_EN" HeaderText="Name" />
                    <asp:BoundField DataField="LNAME_EN" HeaderText="Surname"   />
                    <asp:BoundField DataField="POSITION" HeaderText="Position" />
                    <asp:BoundField DataField="TX_STATUS" HeaderText="Status" />
                    <asp:TemplateField>
                        <ItemTemplate>
                            <asp:LinkButton ID="btnSendEmail" runat="server" CommandArgument='<%# Eval("HASH") %>' CommandName="ResendEmail" CausesValidation="false" ToolTip="Resend Email">
                                <span class="glyphicon" style="margin-right:3px;position:relative;top:0;"><i class="fa fa-envelope-o"></i></span>
                            </asp:LinkButton>
                            <asp:LinkButton ID="btnEdit" runat="server" CommandArgument='<%# Eval("HASH") %>' CommandName="EditApplication" CausesValidation="false" ToolTip="Edit candidate's data">
                                <span class="glyphicon glyphicon-edit"></span>
                            </asp:LinkButton>
                            <asp:LinkButton ID="btnDelete" runat="server" CommandArgument='<%# Eval("HASH") %>' CommandName="DeleteApplication" CausesValidation="false" OnClientClick="return confirm('Are you sure to delete?');" ToolTip="Delete candidate data">
                                <span class="glyphicon glyphicon-trash"></span>
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle BackColor="Gray" HorizontalAlign="Center" />
                <PagerStyle BackColor="Gray" ForeColor="Black" Font-Bold="true" />
            </asp:GridView>
            <div id="dvNotFound" runat="server" Visible="false" style="margin-top: 50px;"><center><asp:label ID="lblNotFound" runat="server" Text="No Record(s) found." ForeColor="Red"></asp:label></center></div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Script" runat="server">
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.core.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.tags.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.autocomplete.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.suggestions.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.filter.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.focus.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.prompt.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.ajax.js"></script>
    <script charset="utf-8" type="text/javascript" src="js/plugins/textext/js/textext.plugin.arrow.js"></script>
</asp:Content>
